package org.ghost.wechat.platform.dto.wechat.message;

import javax.xml.bind.annotation.XmlElement;
import java.io.Serializable;

/**
 * @author 01
 */
public abstract class BaseMsgXmlDTO implements Serializable {
    private static final long serialVersionUID = 6049414744256899687L;

    /**
     * 开发者微信号
     */
    @XmlElement(name = "ToUserName")
    protected String toUserName;
    /**
     * 发送方帐号（一个OpenID）
     */
    @XmlElement(name = "FromUserName")
    protected String fromUserName;
    /**
     * 消息创建时间 （整型）
     */
    @XmlElement(name = "CreateTime")
    protected Long createTime;
    /**
     * 消息类型(text,image,voice,video,shortvideo,location,link,event)
     */
    @XmlElement(name = "MsgType")
    protected String msgType;

    public String getToUserName() {
        return toUserName;
    }

    public void setToUserName(String toUserName) {
        this.toUserName = toUserName;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }
}
